package com.net.xpay.common.dao.partner;

import com.net.xpay.common.domain.partner.PartnerInsiderSettleLog;
import com.net.common.annotation.DataCommon;
import com.net.common.dao.Page;
import com.net.common.dao.PagedMapper;
import com.net.xpay.core.model.PartnerInsiderSettleLogSearchModel;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@DataCommon
@Repository
public interface PartnerInsiderSettleLogMapper extends PagedMapper<Long, PartnerInsiderSettleLog> {

    List<PartnerInsiderSettleLog> search(@Param("searchModel") PartnerInsiderSettleLogSearchModel searchModel,@Param("page") Page page);

    long searchCount(@Param("searchModel")PartnerInsiderSettleLogSearchModel searchModel);

    BigDecimal sumPartnerSettleAmount(@Param("searchModel")PartnerInsiderSettleLogSearchModel searchModel);
}
